Skip to content

fix(site): match the landing page demos to the lime app - #98

Merged
8liam merged 4 commits into
mainfrom
fix/site-app-renders
Nov 25, 2026
Merged

8liam merged 4 commits into
mainfrom
fix/site-app-renders

Conversation

@8liam

@8liam 8liam commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

The landing page's embedded app demos still used the pre-restyle tokens, so they rendered with a blue primary and no longer looked like the app.

  • Sync the .oi-app token block to the app's default dark palette and its derived tokens, and map the tokens it was missing (accent-strong, destructive-solid, the hover mixes). Chart line, pressed toggles and progress bars are lime again.
  • Native checkboxes and the focus ring use --accent-ink, as in the app.
  • Storage demo: the units column is 288px (w-72) like the app, so the restyled unit cards no longer get cut off under the table.
  • Items demo: the filters stay native <select> but are styled like the app's Select trigger. The app's Select positions its list with position: fixed, which misplaces it inside the scaled demo panels.
  • The palette is no longer a hand-kept copy. site/src/lib/app-tokens builds the .oi-app rule from the app's PALETTES.default.dark and CHART_PALETTE at build time and Base.astro inlines it, so the demos can't drift from the app's colours again. The derived tokens (--fill-*, --accent-ink, ...) stay as formulas in site/src/styles/index.css and follow the generated values.

Not fixed here: the odds chart axis labels on the Cases demo overlap ("Far fewerFewer"), the same as in the app. Checked at desktop width only.

The demos' .oi-app colours were a hand-kept copy that drifted when the app went lime. They are now generated at build time from PALETTES and CHART_PALETTE, so a palette change in the app reaches the site with no edit here.
@8liam
8liam merged commit 0b2974e into main Nov 25, 2026
6 checks passed
@8liam
8liam deleted the fix/site-app-renders branch November 25, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant